package com.ljc.controller;

import com.ljc.model.Admin;
import com.ljc.model.User;
import com.ljc.service.AdminService;
import com.ljc.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ljc.utils.dotahelper;

import java.io.IOException;
import java.util.List;

@Controller
@RequestMapping("/admin")
public class AdminController {
    @Autowired
    private IUserService userService;
    @GetMapping("/create2")
    public void create() throws IOException {
        User a = new User();


        a.setLimit(15);
        a.setPage(1);

        List<User> x = userService.query(a);

        System.out.println("sss");


    }
}
